package cn.zyq.ykb.service.sys;


import cn.zyq.ykb.beans.sys.SysAdmin;
import cn.zyq.ykb.beans.sys.SysJobLog;
import cn.zyq.ykb.system.common.PageParam;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysJobLogService {
    PageInfo<SysJobLog> list(PageParam pageParam);

    void add(SysJobLog param, SysAdmin admin);

    void update(SysJobLog param, SysAdmin admin);

    void del(String serviceID, SysAdmin admin);

    SysJobLog detail(String serviceID, SysAdmin admin);

    SysJobLog detail(String serviceID);

    List<SysJobLog> selectJobLogList(SysJobLog sysJobLog);

    /**
     * 通过调度任务日志ID查询调度信息
     *
     * @param jobLogId 调度任务日志ID
     * @return 调度任务日志对象信息
     */
    public SysJobLog selectJobLogById(Integer jobLogId);

    /**
     * 新增任务日志
     *
     * @param jobLog 调度日志信息
     */
    public void addJobLog(SysJobLog jobLog);

    /**
     * 批量删除调度日志信息
     *
     * @param logIds 需要删除的日志ID
     * @return 结果
     */
    public int deleteJobLogByIds(Integer[] logIds);

    /**
     * 删除任务日志
     *
     * @param jobId 调度日志ID
     * @return 结果
     */
    public int deleteJobLogById(Integer jobId);

    /**
     * 清空任务日志
     */
    public void cleanJobLog();
}

